package cn.ekgc.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Getter
@Setter
@Component
@ToString
public class Registry {

  private long id;
  private long patientId;
  private long scheduleId;
  private long userId;
  private long departmentId;
  private long roomId;
  private long status;
  private double fee;
  private double payFee;
  private double medicareFee;
  private long isMedicare;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private LocalDateTime registryTime;
  private LocalDateTime consultationTime;
  private LocalDateTime createdTime;
  private LocalDateTime updatedTime;


  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public long getPatientId() {
    return patientId;
  }

  public void setPatientId(long patientId) {
    this.patientId = patientId;
  }


  public long getScheduleId() {
    return scheduleId;
  }

  public void setScheduleId(long scheduleId) {
    this.scheduleId = scheduleId;
  }


  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }


  public long getDepartmentId() {
    return departmentId;
  }

  public void setDepartmentId(long departmentId) {
    this.departmentId = departmentId;
  }


  public long getRoomId() {
    return roomId;
  }

  public void setRoomId(long roomId) {
    this.roomId = roomId;
  }


  public long getStatus() {
    return status;
  }

  public void setStatus(long status) {
    this.status = status;
  }


  public double getFee() {
    return fee;
  }

  public void setFee(double fee) {
    this.fee = fee;
  }


  public double getPayFee() {
    return payFee;
  }

  public void setPayFee(double payFee) {
    this.payFee = payFee;
  }


  public double getMedicareFee() {
    return medicareFee;
  }

  public void setMedicareFee(double medicareFee) {
    this.medicareFee = medicareFee;
  }


  public long getIsMedicare() {
    return isMedicare;
  }

  public void setIsMedicare(long isMedicare) {
    this.isMedicare = isMedicare;
  }


  public LocalDateTime getRegistryTime() {
    return registryTime;
  }

  public void setRegistryTime(LocalDateTime registryTime) {
    this.registryTime = registryTime;
  }


  public LocalDateTime getConsultationTime() {
    return consultationTime;
  }

  public void setConsultationTime(LocalDateTime consultationTime) {
    this.consultationTime = consultationTime;
  }


  public LocalDateTime getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(LocalDateTime createdTime) {
    this.createdTime = createdTime;
  }


  public LocalDateTime getUpdatedTime() {
    return updatedTime;
  }

  public void setUpdatedTime(LocalDateTime updatedTime) {
    this.updatedTime = updatedTime;
  }

}
